#ifndef __RF_SYNC_H
#define __RF_SYNC_H

#include "rf_port.h"
#include "rf_pair.h"

#define SYS2MS(t)                       (FREQ_SYS / 1000 * (t))

#ifndef CONFIG_RF_SYNC_UNIT_MS
#define CONFIG_RF_SYNC_UNIT_MS         1
#endif

#ifndef CONFIG_RF_HB_INTERVAL_MS
#define CONFIG_RF_HB_INTERVAL_MS          100
#endif

#define RF_SYNC_START_EVT               (1<<0)

void rf_sync_init(void);
void rf_sync_start(void);
void rf_sync_stop(void);


#endif /* __RF_SYNC_H */
